import request from '@/utils/request'

export function getSubjectList(query) {
  return request({
    url: '/finance/subject/getList',
    method: 'post',
    data: query
  })
}
export function getSubjectUseable(query) {
  return request({
    url: '/finance/subject/getAvailable',
    method: 'post',
    data: query
  })
}

export function getSubjectDetail(id) {
  return request({
    url: '/finance/subject/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveSubject(id) {
  return request({
    url: '/finance/subject/save',
    method: 'post',
    data: id
  })
}

export function removeSubjectByID(id) {
  return request({
    url: '/finance/subject/remove',
    method: 'post',
    data: id
  })
}

export function changeSubjectStatusByID(formdata) {
  return request({
    url: '/finance/subject/change-status',
    method: 'post',
    data: formdata
  })
}

